home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 72 / maccd 72.iso / online / NetFinder 2.1.2 ƒ / NetFinder Script Components / Scripts / Get NF from ausmac.net < prev    next >
MacBinary  |  2000-01-30  |  4.1 KB  |  [ICI!/Woof]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Impulse Tracker Network driver (other/impulseTrackerNetworkDriver) ext Unsupported
1% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Sun Nov 2 19:00:00 1997, modified Sun Jan 30 04:28:12 2000, creator 'Woof', type 'ICI!', 3706 bytes "Get NF from ausmac.net" , at 0xefa 286 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ICI!]
macFileCreator[Woof]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 16 47 65 74 20 4e 46 | 20 66 72 6f 6d 20 61 75 |..Get NF| from au|
|00000010| 73 6d 61 63 2e 6e 65 74 | 00 00 00 00 00 00 00 00 |smac.net|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 49 43 49 21 57 6f 6f | 66 01 00 00 00 00 00 00 |.ICI!Woo|f.......|
|00000050| 00 00 00 00 00 0e 7a 00 | 00 01 1e b0 82 c4 80 b4 |......z.|........|
|00000060| b9 b4 ac 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a9 f3 00 00 |........|........|
|00000080| 2f 2a 20 0d 09 53 61 6d | 70 6c 65 20 49 43 49 20 |/* ..Sam|ple ICI |
|00000090| 73 63 72 69 70 74 20 66 | 6f 72 20 4e 65 74 46 69 |script f|or NetFi|
|000000a0| 6e 64 65 72 2e 0d 09 0d | 09 54 68 69 73 20 73 63 |nder....|.This sc|
|000000b0| 72 69 70 74 20 64 65 6d | 6f 6e 73 74 72 61 74 65 |ript dem|onstrate|
|000000c0| 73 20 68 6f 77 20 74 6f | 20 63 61 6c 6c 20 4e 65 |s how to| call Ne|
|000000d0| 74 46 69 6e 64 65 72 27 | 73 20 46 54 50 20 65 6e |tFinder'|s FTP en|
|000000e0| 67 69 6e 65 20 66 72 6f | 6d 20 0d 09 61 20 73 63 |gine fro|m ..a sc|
|000000f0| 72 69 70 74 2e 20 53 70 | 65 63 69 66 69 63 61 6c |ript. Sp|ecifical|
|00000100| 6c 79 20 63 6f 6e 6e 65 | 63 74 69 6e 67 2c 20 64 |ly conne|cting, d|
|00000110| 6f 77 6e 6c 6f 61 64 69 | 6e 67 20 61 6e 64 20 70 |ownloadi|ng and p|
|00000120| 72 6f 67 72 65 73 73 20 | 63 61 6c 6c 62 61 63 6b |rogress |callback|
|00000130| 2e 0d 09 0d 09 57 68 61 | 74 20 74 68 69 73 20 73 |.....Wha|t this s|
|00000140| 63 72 69 70 74 20 64 6f | 65 73 3a 0d 09 2d 20 63 |cript do|es:..- c|
|00000150| 6f 6e 6e 65 63 74 73 20 | 74 6f 20 41 75 73 4d 61 |onnects |to AusMa|
|00000160| 63 20 41 72 63 68 69 76 | 65 20 28 41 75 73 74 72 |c Archiv|e (Austr|
|00000170| 61 6c 69 61 6e 20 4d 69 | 72 72 6f 72 20 53 69 74 |alian Mi|rror Sit|
|00000180| 65 29 2e 0d 09 2d 20 63 | 6f 6c 6c 65 63 74 73 20 |e)...- c|ollects |
|00000190| 61 6e 64 20 64 69 73 70 | 6c 61 79 73 20 61 20 66 |and disp|lays a f|
|000001a0| 65 77 20 6c 69 73 74 69 | 6e 67 2e 0d 09 2d 20 64 |ew listi|ng...- d|
|000001b0| 6f 77 6e 6c 6f 61 64 73 | 20 74 68 65 20 63 75 72 |ownloads| the cur|
|000001c0| 72 65 6e 74 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |rent ver|sion of |
|000001d0| 4e 65 74 46 69 6e 64 65 | 72 20 66 72 6f 6d 20 74 |NetFinde|r from t|
|000001e0| 68 65 20 73 69 74 65 20 | 74 6f 20 0d 09 20 20 79 |he site |to .. y|
|000001f0| 6f 75 72 20 6c 6f 63 61 | 6c 20 64 69 73 6b 20 28 |our loca|l disk (|
|00000200| 73 61 6d 65 20 6c 65 76 | 65 6c 20 61 73 20 79 6f |same lev|el as yo|
|00000210| 75 72 20 4e 46 20 61 70 | 70 29 2e 0d 09 0d 09 4e |ur NF ap|p).....N|
|00000220| 4f 54 45 53 3a 0d 09 6f | 20 46 75 6c 6c 20 49 43 |OTES:..o| Full IC|
|00000230| 49 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 20 73 79 |I progra|mming sy|
|00000240| 6e 74 61 78 20 63 61 6e | 20 62 65 20 6f 62 74 61 |ntax can| be obta|
|00000250| 69 6e 65 64 20 66 72 6f | 6d 0d 09 20 20 3c 68 74 |ined fro|m.. <ht|
|00000260| 74 70 3a 2f 2f 77 77 77 | 2e 7a 65 74 61 2e 6f 72 |tp://www|.zeta.or|
|00000270| 67 2e 61 75 2f 7e 61 74 | 72 6e 2f 69 63 69 2f 64 |g.au/~at|rn/ici/d|
|00000280| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 2e 68 74 6d |ocumenta|tion.htm|
|00000290| 6c 3e 0d 09 6f 20 41 20 | 73 74 61 6e 64 61 6c 6f |l>..o A |standalo|
|000002a0| 6e 65 20 49 43 49 20 61 | 70 70 20 70 6f 72 74 65 |ne ICI a|pp porte|
|000002b0| 64 20 74 6f 20 4d 61 63 | 4f 53 20 77 69 6c 6c 20 |d to Mac|OS will |
|000002c0| 62 65 20 61 76 61 69 6c | 61 62 6c 65 0d 09 20 20 |be avail|able.. |
|000002d0| 66 6f 72 20 66 72 65 65 | 20 6f 6e 63 65 20 49 20 |for free| once I |
|000002e0| 28 50 65 74 65 72 29 20 | 68 61 76 65 20 74 69 6d |(Peter) |have tim|
|000002f0| 65 20 74 6f 20 63 6c 65 | 61 6e 20 65 76 65 72 79 |e to cle|an every|
|00000300| 74 68 69 6e 67 20 75 70 | 2e 0d 09 6f 20 41 20 4d |thing up|...o A M|
|00000310| 65 74 72 6f 77 65 72 6b | 73 20 49 43 49 20 43 6f |etrowerk|s ICI Co|
|00000320| 6d 70 69 6c 65 72 20 70 | 6c 75 67 69 6e 20 77 69 |mpiler p|lugin wi|
|00000330| 6c 6c 20 61 6c 73 6f 20 | 62 65 20 61 76 61 69 6c |ll also |be avail|
|00000340| 61 62 6c 65 0d 09 20 20 | 66 6f 72 20 66 72 65 65 |able.. |for free|
|00000350| 20 77 68 65 6e 20 49 20 | 68 61 76 65 20 63 6c 65 | when I |have cle|
|00000360| 61 6e 65 64 20 74 68 69 | 6e 67 73 20 75 70 2e 0d |aned thi|ngs up..|
|00000370| 09 20 20 49 66 20 79 6f | 75 20 77 61 6e 74 20 77 |. If yo|u want w|
|00000380| 68 61 74 20 49 20 68 61 | 76 65 20 61 73 20 69 74 |hat I ha|ve as it|
|00000390| 20 73 74 61 6e 64 73 2c | 20 6a 75 73 74 20 65 6d | stands,| just em|
|000003a0| 61 69 6c 20 6d 65 2e 0d | 09 0d 09 28 63 29 20 43 |ail me..|...(c) C|
|000003b0| 6f 70 79 72 69 67 68 74 | 20 32 30 30 30 20 50 65 |opyright| 2000 Pe|
|000003c0| 74 65 72 20 4c 69 2e 0d | 20 2a 2f 0d 0d 2f 2a 20 |ter Li..| */../* |
|000003d0| 6c 6f 61 64 20 69 6e 20 | 73 6f 6d 65 20 63 6f 6e |load in |some con|
|000003e0| 73 74 61 6e 74 73 20 65 | 78 70 6f 72 74 65 64 20 |stants e|xported |
|000003f0| 62 79 20 4e 46 2c 20 73 | 6f 20 77 65 20 64 6f 6e |by NF, s|o we don|
|00000400| 74 20 68 61 76 65 20 74 | 6f 20 75 73 65 20 6e 75 |t have t|o use nu|
|00000410| 6d 62 65 72 73 20 2a 2f | 0d 4e 46 4c 6f 61 64 4d |mbers */|.NFLoadM|
|00000420| 6f 64 75 6c 65 43 6f 6e | 73 74 61 6e 74 73 28 29 |oduleCon|stants()|
|00000430| 3b 0d 0d 2f 2a 20 0d 09 | 54 68 69 73 20 69 73 20 |;../* ..|This is |
|00000440| 61 20 70 72 6f 67 72 65 | 73 73 20 63 61 6c 6c 62 |a progre|ss callb|
|00000450| 61 63 6b 20 66 6f 72 20 | 74 68 65 20 4e 46 20 65 |ack for |the NF e|
|00000460| 6e 67 69 6e 65 2e 0d 09 | 0d 09 69 6e 55 73 65 72 |ngine...|..inUser|
|00000470| 44 61 74 61 20 2d 20 70 | 61 73 73 65 64 20 61 73 |Data - p|assed as|
|00000480| 20 61 6e 20 6f 62 6a 65 | 63 74 2c 20 73 6f 20 69 | an obje|ct, so i|
|00000490| 74 20 63 6f 75 6c 64 20 | 62 65 20 61 6e 79 74 68 |t could |be anyth|
|000004a0| 69 6e 67 20 79 6f 75 0d | 09 09 09 09 20 77 61 6e |ing you.|.... wan|
|000004b0| 74 20 69 74 20 74 6f 20 | 62 65 2e 0d 09 69 6e 43 |t it to |be...inC|
|000004c0| 61 6c 6c 54 79 70 65 20 | 2d 20 64 65 66 69 6e 65 |allType |- define|
|000004d0| 73 20 77 68 61 74 20 74 | 68 65 20 63 61 6c 6c 62 |s what t|he callb|
|000004e0| 61 63 6b 20 69 73 20 62 | 65 69 6e 67 20 63 61 6c |ack is b|eing cal|
|000004f0| 6c 65 64 20 66 6f 72 2e | 0d 09 09 09 09 20 65 67 |led for.|..... eg|
|00000500| 20 61 6d 6f 75 6e 74 20 | 6f 66 20 64 61 74 61 20 | amount |of data |
|00000510| 73 65 6e 74 2f 72 65 63 | 65 69 76 65 64 2c 20 66 |sent/rec|eived, f|
|00000520| 69 6c 65 6e 61 6d 65 2e | 2e 2e 0d 09 69 6e 43 61 |ilename.|....inCa|
|00000530| 6c 6c 54 79 70 65 44 61 | 74 61 20 2d 20 74 68 69 |llTypeDa|ta - thi|
|00000540| 73 20 64 61 74 61 20 6d | 61 79 20 76 61 72 79 20 |s data m|ay vary |
|00000550| 64 65 70 65 6e 64 69 6e | 67 20 6f 6e 20 69 6e 43 |dependin|g on inC|
|00000560| 61 6c 6c 54 79 70 65 2e | 0d 09 09 09 09 20 69 65 |allType.|..... ie|
|00000570| 20 69 74 20 6d 61 79 20 | 62 65 20 61 6e 20 69 6e | it may |be an in|
|00000580| 74 20 66 6f 72 20 64 61 | 74 61 20 73 65 6e 74 2c |t for da|ta sent,|
|00000590| 20 6f 72 20 69 74 20 63 | 6f 75 6c 64 20 62 65 0d | or it c|ould be.|
|000005a0| 09 09 09 09 20 61 20 73 | 74 72 69 6e 67 20 72 65 |.... a s|tring re|
|000005b0| 70 72 65 73 65 6e 74 69 | 6e 67 20 74 68 65 20 66 |presenti|ng the f|
|000005c0| 69 6c 65 6e 61 6d 65 2e | 0d 20 2a 2f 0d 73 74 61 |ilename.|. */.sta|
|000005d0| 74 69 63 0d 50 72 6f 67 | 72 65 73 73 43 61 6c 6c |tic.Prog|ressCall|
|000005e0| 62 61 63 6b 28 69 6e 55 | 73 65 72 44 61 74 61 2c |back(inU|serData,|
|000005f0| 20 69 6e 43 61 6c 6c 54 | 79 70 65 2c 20 69 6e 43 | inCallT|ype, inC|
|00000600| 61 6c 6c 54 79 70 65 44 | 61 74 61 29 0d 7b 0d 09 |allTypeD|ata).{..|
|00000610| 65 78 74 65 72 6e 20 74 | 6f 74 61 6c 20 3d 20 30 |extern t|otal = 0|
|00000620| 3b 0d 09 65 78 74 65 72 | 6e 20 74 69 6d 65 72 20 |;..exter|n timer |
|00000630| 3d 20 30 3b 0d 09 0d 09 | 69 66 20 28 69 6e 43 61 |= 0;....|if (inCa|
|00000640| 6c 6c 54 79 70 65 20 3d | 3d 20 31 29 0d 09 09 74 |llType =|= 1)...t|
|00000650| 6f 74 61 6c 20 2b 3d 20 | 69 6e 43 61 6c 6c 54 79 |otal += |inCallTy|
|00000660| 70 65 44 61 74 61 3b 0d | 09 0d 09 2f 2a 0d 09 09 |peData;.|.../*...|
|00000670| 4e 46 20 45 78 70 6f 72 | 74 73 20 61 20 72 6f 75 |NF Expor|ts a rou|
|00000680| 74 69 6e 65 20 63 61 6c | 6c 65 64 20 54 69 63 6b |tine cal|led Tick|
|00000690| 43 6f 75 6e 74 28 29 20 | 74 68 61 74 20 6f 70 65 |Count() |that ope|
|000006a0| 72 61 74 65 73 20 65 78 | 61 63 74 6c 79 20 6c 69 |rates ex|actly li|
|000006b0| 6b 65 0d 09 09 74 68 65 | 20 4d 61 63 4f 53 20 54 |ke...the| MacOS T|
|000006c0| 6f 6f 6c 62 6f 78 20 63 | 61 6c 6c 2e 20 4e 61 6d |oolbox c|all. Nam|
|000006d0| 65 6c 79 20 69 74 20 72 | 65 74 75 72 6e 73 20 74 |ely it r|eturns t|
|000006e0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 69 63 |he numbe|r of tic|
|000006f0| 6b 73 0d 09 09 28 31 2f | 36 30 20 73 65 63 29 20 |ks...(1/|60 sec) |
|00000700| 73 69 6e 63 65 20 73 74 | 61 72 74 75 70 20 6f 66 |since st|artup of|
|00000710| 20 79 6f 75 72 20 6d 61 | 63 68 69 6e 65 2e 0d 09 | your ma|chine...|
|00000720| 20 2a 2f 0d 09 0d 09 69 | 66 20 28 54 69 63 6b 43 | */....i|f (TickC|
|00000730| 6f 75 6e 74 28 29 20 3e | 20 74 69 6d 65 72 20 2b |ount() >| timer +|
|00000740| 20 36 30 29 0d 09 7b 0d | 09 09 70 72 69 6e 74 66 | 60)..{.|..printf|
|00000750| 28 22 25 73 3a 20 25 64 | 5c 6e 22 2c 20 69 6e 55 |("%s: %d|\n", inU|
|00000760| 73 65 72 44 61 74 61 2c | 20 74 6f 74 61 6c 29 3b |serData,| total);|
|00000770| 0d 09 09 74 69 6d 65 72 | 20 3d 20 54 69 63 6b 43 |...timer| = TickC|
|00000780| 6f 75 6e 74 28 29 3b 0d | 09 7d 0d 7d 0d 0d 2f 2a |ount();.|.}.}../*|
|00000790| 20 63 72 65 61 74 65 20 | 73 6f 6d 65 20 76 61 72 | create |some var|
|000007a0| 69 61 62 6c 65 73 20 2a | 2f 0d 61 75 74 6f 20 66 |iables *|/.auto f|
|000007b0| 74 70 52 65 66 20 3d 20 | 4e 46 43 72 65 61 74 65 |tpRef = |NFCreate|
|000007c0| 46 54 50 49 6e 73 74 61 | 6e 63 65 28 29 3b 0d 61 |FTPInsta|nce();.a|
|000007d0| 75 74 6f 20 72 65 73 75 | 6c 74 3b 0d 61 75 74 6f |uto resu|lt;.auto|
|000007e0| 20 6c 69 73 74 69 6e 67 | 20 3d 20 5b 61 72 72 61 | listing| = [arra|
|000007f0| 79 5d 3b 0d 61 75 74 6f | 20 69 74 65 6d 3b 0d 0d |y];.auto| item;..|
|00000800| 70 72 69 6e 74 66 28 22 | 46 54 50 20 6d 69 72 72 |printf("|FTP mirr|
|00000810| 6f 72 20 63 6f 6d 70 6c | 69 6d 65 6e 74 73 20 6f |or compl|iments o|
|00000820| 66 20 54 68 65 20 41 75 | 73 4d 61 63 20 41 72 63 |f The Au|sMac Arc|
|00000830| 68 69 76 65 2e 5c 6e 22 | 29 3b 0d 0d 64 6f 20 7b |hive.\n"|);..do {|
|00000840| 0d 09 2f 2a 20 63 6f 6e | 6e 65 63 74 20 74 6f 20 |../* con|nect to |
|00000850| 6f 75 72 20 46 54 50 20 | 73 69 74 65 20 2a 2f 0d |our FTP |site */.|
|00000860| 09 70 72 69 6e 74 66 28 | 22 43 6f 6e 6e 65 63 74 |.printf(|"Connect|
|00000870| 69 6e 67 20 74 6f 20 3c | 66 74 70 3a 2f 2f 74 68 |ing to <|ftp://th|
|00000880| 65 2e 61 75 73 6d 61 63 | 2e 6e 65 74 2f 3e 2e 2e |e.ausmac|.net/>..|
|00000890| 2e 5c 6e 22 29 3b 0d 09 | 69 66 20 28 72 65 73 75 |.\n");..|if (resu|
|000008a0| 6c 74 20 3d 20 4e 46 43 | 6f 6e 6e 65 63 74 28 66 |lt = NFC|onnect(f|
|000008b0| 74 70 52 65 66 2c 20 22 | 74 68 65 2e 61 75 73 6d |tpRef, "|the.ausm|
|000008c0| 61 63 2e 6e 65 74 22 2c | 20 32 31 2c 20 0d 09 09 |ac.net",| 21, ...|
|000008d0| 09 09 09 09 09 22 61 6e | 6f 6e 79 6d 6f 75 73 22 |....."an|onymous"|
|000008e0| 2c 20 22 75 73 65 72 40 | 68 6f 6d 65 2e 63 6f 6d |, "user@|home.com|
|000008f0| 22 29 2c 20 72 65 73 75 | 6c 74 20 21 3d 20 30 29 |"), resu|lt != 0)|
|00000900| 0d 09 7b 0d 09 09 62 72 | 65 61 6b 3b 0d 09 7d 0d |..{...br|eak;..}.|
|00000910| 09 70 72 69 6e 74 66 28 | 22 64 6f 6e 65 2e 5c 6e |.printf(|"done.\n|
|00000920| 22 29 3b 0d 0d 09 2f 2a | 20 67 65 74 20 74 68 65 |");.../*| get the|
|00000930| 20 6c 69 73 74 69 6e 67 | 20 2a 2f 0d 09 70 72 69 | listing| */..pri|
|00000940| 6e 74 66 28 22 47 65 74 | 74 69 6e 67 20 6c 69 73 |ntf("Get|ting lis|
|00000950| 74 69 6e 67 2e 2e 2e 5c | 6e 22 29 3b 0d 09 69 66 |ting...\|n");..if|
|00000960| 20 28 72 65 73 75 6c 74 | 20 3d 20 4e 46 4c 69 73 | (result| = NFLis|
|00000970| 74 44 69 72 65 63 74 6f | 72 79 28 66 74 70 52 65 |tDirecto|ry(ftpRe|
|00000980| 66 2c 20 0d 09 09 09 09 | 22 2f 70 75 62 2f 6d 61 |f, .....|"/pub/ma|
|00000990| 63 2f 43 6f 6d 6d 75 6e | 69 63 61 74 69 6f 6e 2d |c/Commun|ication-|
|000009a0| 53 57 2f 4e 65 74 46 69 | 6e 64 65 72 2f 76 32 2e |SW/NetFi|nder/v2.|
|000009b0| 78 22 2c 0d 09 09 09 09 | 31 2c 20 26 6c 69 73 74 |x",.....|1, &list|
|000009c0| 69 6e 67 29 2c 20 72 65 | 73 75 6c 74 20 21 3d 20 |ing), re|sult != |
|000009d0| 30 29 0d 09 7b 0d 09 09 | 62 72 65 61 6b 3b 0d 09 |0)..{...|break;..|
|000009e0| 7d 0d 0d 09 66 6f 72 61 | 6c 6c 28 69 74 65 6d 20 |}...fora|ll(item |
|000009f0| 69 6e 20 6c 69 73 74 69 | 6e 67 29 0d 09 7b 0d 09 |in listi|ng)..{..|
|00000a00| 09 69 66 20 28 69 74 65 | 6d 2e 6e 61 6d 65 20 7e |.if (ite|m.name ~|
|00000a10| 20 23 2e 2a 76 65 72 73 | 69 6f 6e 2e 2a 23 29 0d | #.*vers|ion.*#).|
|00000a20| 09 09 09 70 72 69 6e 74 | 66 28 22 25 2d 33 32 73 |...print|f("%-32s|
|00000a30| 5c 6e 22 2c 20 69 74 65 | 6d 2e 6e 61 6d 65 29 3b |\n", ite|m.name);|
|00000a40| 0d 09 7d 0d 0d 09 2f 2a | 20 65 6d 70 74 79 20 6f |..}.../*| empty o|
|00000a50| 75 74 20 74 68 65 20 6c | 69 73 74 69 6e 67 20 76 |ut the l|isting v|
|00000a60| 61 72 69 61 62 6c 65 2c | 20 73 69 6e 63 65 20 6c |ariable,| since l|
|00000a70| 69 73 74 69 6e 67 20 64 | 61 74 61 20 69 73 20 61 |isting d|ata is a|
|00000a80| 70 70 65 6e 64 65 64 20 | 2a 2f 0d 09 6c 69 73 74 |ppended |*/..list|
|00000a90| 69 6e 67 20 3d 20 5b 61 | 72 72 61 79 5d 3b 0d 09 |ing = [a|rray];..|
|00000aa0| 0d 09 69 66 20 28 72 65 | 73 75 6c 74 20 3d 20 4e |..if (re|sult = N|
|00000ab0| 46 4c 69 73 74 44 69 72 | 65 63 74 6f 72 79 28 66 |FListDir|ectory(f|
|00000ac0| 74 70 52 65 66 2c 20 0d | 09 09 09 09 22 2f 70 75 |tpRef, .|...."/pu|
|00000ad0| 62 2f 6d 61 63 2f 43 6f | 6d 6d 75 6e 69 63 61 74 |b/mac/Co|mmunicat|
|00000ae0| 69 6f 6e 2d 53 57 2f 4e | 65 74 46 69 6e 64 65 72 |ion-SW/N|etFinder|
|00000af0| 2f 76 32 2e 78 2f 45 6e | 67 6c 69 73 68 22 2c 0d |/v2.x/En|glish",.|
|00000b00| 09 09 09 09 31 2c 20 26 | 6c 69 73 74 69 6e 67 29 |....1, &|listing)|
|00000b10| 2c 20 72 65 73 75 6c 74 | 20 21 3d 20 30 29 0d 09 |, result| != 0)..|
|00000b20| 7b 0d 09 09 62 72 65 61 | 6b 3b 0d 09 7d 0d 09 0d |{...brea|k;..}...|
|00000b30| 09 70 72 69 6e 74 66 28 | 22 4e 75 6d 20 69 74 65 |.printf(|"Num ite|
|00000b40| 6d 73 20 3d 20 25 64 5c | 6e 22 2c 20 6e 65 6c 73 |ms = %d\|n", nels|
|00000b50| 28 6c 69 73 74 69 6e 67 | 29 29 3b 0d 0d 09 66 6f |(listing|));...fo|
|00000b60| 72 61 6c 6c 28 69 74 65 | 6d 20 69 6e 20 6c 69 73 |rall(ite|m in lis|
|00000b70| 74 69 6e 67 29 0d 09 7b | 0d 09 09 70 72 69 6e 74 |ting)..{|...print|
|00000b80| 66 28 22 25 2d 33 32 73 | 20 25 31 32 64 5c 6e 22 |f("%-32s| %12d\n"|
|00000b90| 2c 20 69 74 65 6d 2e 6e | 61 6d 65 2c 20 69 74 65 |, item.n|ame, ite|
|00000ba0| 6d 2e 73 69 7a 65 29 3b | 0d 09 7d 0d 0d 09 2f 2a |m.size);|..}.../*|
|00000bb0| 0d 09 09 4e 46 20 45 78 | 70 6f 72 74 73 20 61 20 |...NF Ex|ports a |
|00000bc0| 72 6f 75 74 69 6e 65 20 | 63 61 6c 6c 65 64 20 4f |routine |called O|
|00000bd0| 53 54 79 70 65 28 29 20 | 74 68 61 74 20 63 6f 6e |SType() |that con|
|00000be0| 76 65 72 74 73 20 74 68 | 65 20 66 69 72 73 74 20 |verts th|e first |
|00000bf0| 66 6f 75 72 0d 09 09 63 | 68 61 72 61 63 74 65 72 |four...c|haracter|
|00000c00| 73 20 6f 66 20 61 20 73 | 74 72 69 6e 67 20 74 6f |s of a s|tring to|
|00000c10| 20 61 6e 20 4d 61 63 4f | 53 20 54 6f 6f 6c 62 6f | an MacO|S Toolbo|
|00000c20| 78 20 4f 53 54 79 70 65 | 2e 0d 09 20 2a 2f 0d 0d |x OSType|... */..|
|00000c30| 09 2f 2a 20 64 6f 77 6e | 6c 6f 61 64 69 6e 67 20 |./* down|loading |
|00000c40| 2a 2f 0d 09 70 72 69 6e | 74 66 28 22 44 6f 77 6e |*/..prin|tf("Down|
|00000c50| 6c 6f 61 64 69 6e 67 20 | 4e 65 74 46 69 6e 64 65 |loading |NetFinde|
|00000c60| 72 2e 2e 2e 5c 6e 22 29 | 3b 0d 09 69 66 20 28 72 |r...\n")|;..if (r|
|00000c70| 65 73 75 6c 74 20 3d 20 | 4e 46 52 65 63 65 69 76 |esult = |NFReceiv|
|00000c80| 65 46 69 6c 65 28 66 74 | 70 52 65 66 2c 20 0d 09 |eFile(ft|pRef, ..|
|00000c90| 09 09 22 2f 70 75 62 2f | 6d 61 63 2f 43 6f 6d 6d |.."/pub/|mac/Comm|
|00000ca0| 75 6e 69 63 61 74 69 6f | 6e 2d 53 57 2f 4e 65 74 |unicatio|n-SW/Net|
|00000cb0| 46 69 6e 64 65 72 2f 76 | 32 2e 78 2f 45 6e 67 6c |Finder/v|2.x/Engl|
|00000cc0| 69 73 68 2f 4e 65 74 46 | 69 6e 64 65 72 2e 68 71 |ish/NetF|inder.hq|
|00000cd0| 78 22 2c 20 0d 09 09 09 | 65 42 69 6e 61 72 79 54 |x", ....|eBinaryT|
|00000ce0| 79 70 65 2c 09 2f 2a 20 | 54 59 50 45 20 49 20 2a |ype,./* |TYPE I *|
|00000cf0| 2f 0d 09 09 09 22 3a 4e | 65 74 46 69 6e 64 65 72 |/....":N|etFinder|
|00000d00| 22 2c 09 2f 2a 20 6c 6f | 63 61 74 69 6f 6e 2b 66 |",./* lo|cation+f|
|00000d10| 69 6c 65 6e 61 6d 65 20 | 74 6f 20 64 6f 77 6e 6c |ilename |to downl|
|00000d20| 6f 61 64 20 74 6f 20 2a | 2f 0d 09 09 09 4f 53 54 |oad to *|/....OST|
|00000d30| 79 70 65 28 22 3f 3f 3f | 3f 22 29 2c 09 2f 2a 20 |ype("???|?"),./* |
|00000d40| 64 65 63 6f 64 69 6e 67 | 20 74 79 70 65 2c 20 27 |decoding| type, '|
|00000d50| 3f 3f 3f 3f 27 20 3d 3e | 20 49 6e 74 65 6c 6c 69 |????' =>| Intelli|
|00000d60| 67 65 6e 74 20 64 6f 77 | 6e 6c 6f 61 64 20 2a 2f |gent dow|nload */|
|00000d70| 0d 09 09 09 50 72 6f 67 | 72 65 73 73 43 61 6c 6c |....Prog|ressCall|
|00000d80| 62 61 63 6b 2c 09 2f 2a | 20 75 73 65 72 73 20 70 |back,./*| users p|
|00000d90| 72 6f 67 72 65 73 73 20 | 63 61 6c 6c 62 61 63 6b |rogress |callback|
|00000da0| 2c 20 63 61 6e 20 62 65 | 20 4e 55 4c 4c 20 2a 2f |, can be| NULL */|
|00000db0| 0d 09 09 09 22 44 6f 77 | 6e 6c 6f 61 64 69 6e 67 |...."Dow|nloading|
|00000dc0| 20 4e 65 74 46 69 6e 64 | 65 72 22 29 2c 09 2f 2a | NetFind|er"),./*|
|00000dd0| 20 63 61 6c 6c 62 61 63 | 6b 20 64 61 74 61 2c 20 | callbac|k data, |
|00000de0| 63 61 6e 20 62 65 20 4e | 55 4c 4c 20 2a 2f 0d 09 |can be N|ULL */..|
|00000df0| 09 09 72 65 73 75 6c 74 | 20 21 3d 20 30 29 0d 09 |..result| != 0)..|
|00000e00| 7b 0d 09 09 62 72 65 61 | 6b 3b 0d 09 7d 0d 09 70 |{...brea|k;..}..p|
|00000e10| 72 69 6e 74 66 28 22 66 | 69 6e 69 73 68 65 64 2e |rintf("f|inished.|
|00000e20| 5c 6e 22 29 3b 0d 0d 09 | 2f 2a 20 64 69 73 63 6f |\n");...|/* disco|
|00000e30| 6e 6e 65 63 74 20 2a 2f | 0d 09 70 72 69 6e 74 66 |nnect */|..printf|
|00000e40| 28 22 44 69 73 63 6f 6e | 6e 65 63 74 69 6e 67 2e |("Discon|necting.|
|00000e50| 2e 2e 5c 6e 22 29 3b 0d | 09 72 65 73 75 6c 74 20 |..\n");.|.result |
|00000e60| 3d 20 4e 46 44 69 73 63 | 6f 6e 6e 65 63 74 28 66 |= NFDisc|onnect(f|
|00000e70| 74 70 52 65 66 29 3b 0d | 09 70 72 69 6e 74 66 28 |tpRef);.|.printf(|
|00000e80| 22 64 6f 6e 65 2e 5c 6e | 22 29 3b 0d 0d 7d 20 77 |"done.\n|");..} w|
|00000e90| 68 69 6c 65 20 28 30 29 | 3b 0d 0d 69 66 20 28 72 |hile (0)|;..if (r|
|00000ea0| 65 73 75 6c 74 20 21 3d | 20 30 29 0d 09 70 72 69 |esult !=| 0)..pri|
|00000eb0| 6e 74 66 28 22 45 72 72 | 6f 72 20 3d 20 25 64 5c |ntf("Err|or = %d\|
|00000ec0| 6e 22 2c 20 72 65 73 75 | 6c 74 29 3b 0d 0d 2f 2a |n", resu|lt);../*|
|00000ed0| 20 63 6c 65 61 6e 20 75 | 70 20 2a 2f 0d 4e 46 44 | clean u|p */.NFD|
|00000ee0| 65 6c 65 74 65 46 54 50 | 49 6e 73 74 61 6e 63 65 |eleteFTP|Instance|
|00000ef0| 28 66 74 70 52 65 66 29 | 3b 0d 00 00 00 00 00 00 |(ftpRef)|;.......|
|00000f00| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000f10| 53 49 4f 4e 3d 31 0d 2d | 2d 2d 0d 41 6c 61 64 64 |SION=1.-|--.Aladd|
|00000f20| 69 6e 09 3c 66 74 70 3a | 2f 2f 66 74 70 2e 61 6c |in.<ftp:|//ftp.al|
|00000f30| 16 47 65 74 20 4e 46 20 | 66 72 6f 6d 20 61 75 73 |.Get NF |from aus|
|00000f40| 6d 61 63 2e 6e 65 74 72 | 02 00 00 00 62 7a 79 20 |mac.netr|....bzy |
|00000f50| 00 00 62 7a 79 20 4d 41 | 43 53 01 00 ff ff ff ff |..bzy MA|CS......|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|00000f70| 00 00 4f 3a fd b0 00 00 | 0e 7a 00 00 01 1e 2f 3e |..O:....|.z..../>|
|00000f80| 09 31 0d 41 6c 74 2e 53 | 6f 75 72 63 65 73 2e 4d |.1.Alt.S|ources.M|
|00000f90| 61 63 09 3c 66 74 70 3a | 2f 2f 66 74 70 62 69 6f |ac.<ftp:|//ftpbio|
|00000fa0| 2e 62 67 73 75 2e 65 64 | 75 3e 09 31 0d 41 4d 55 |.bgsu.ed|u>.1.AMU|
|00000fb0| 47 09 3c 66 74 70 3a 2f | 2f 66 74 70 2e 61 6d 75 |G.<ftp:/|/ftp.amu|
|00000fc0| 67 2e 6f 72 67 2f 70 75 | 62 2f 3e 09 31 0d 41 4f |g.org/pu|b/>.1.AO|
|00000fd0| 43 45 09 3c 66 74 70 3a | 2f 2f 66 74 70 2e 61 6e |CE.<ftp:|//ftp.an|
|00000fe0| 64 72 65 77 2e 63 6d 75 | 2e 65 64 75 2f 70 75 62 |drew.cmu|.edu/pub|
|00000ff0| 2f 61 6f 63 65 2f 3e 09 | 31 0d 41 4f 4c 09 3c 66 |/aoce/>.|1.AOL.<f|
|00001000| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001010| 09 e5 a5 94 5b ce 00 00 | 00 1c 00 1e ff ff 00 00 |....[...|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+